# RUN: not llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx908 -run-pass=none %s -o /dev/null 2>&1 | FileCheck %s
---
name:            foo
tracksRegLiveness: true
body:             |
  bb.0:

    ; CHECK: [[@LINE+1]]:23: cannot have a killed def operand
    killed %0:sgpr_32 = S_MOV_B32 0
    S_ENDPGM 0

...
